#include <iostream>
#include <unistd.h>
#include <stdlib.h>
using namespace std;

int main()
{
    cout << "-----------------------------------------" << endl;
    cout << "我是另一个程序，我的pid:" << getpid() << endl;
    cout << "MYENV:" << (getenv("MYENV")==NULL ? "NULL" : getenv("MYENV")) << endl;
    cout << "PATH:" << (getenv("PATH")==NULL ? "NULL" : getenv("PATH")) << endl;
    cout << "-----------------------------------------" << endl;
    return 0;
}
